{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>证件信息</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="agent/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('card')}">
				<input type="hidden" name="id" value="{$ad.id}" />
				<!--证件设置-->
				<div class="form-group">
					<label class="col-sm-2 control-label">营业执照：</label>
					<div class="input-group col-sm-4">
						<input type="hidden" id="license" name="license"  value="{$ad.license}"/>
						<input id="upload" name="upload" type="file" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">相关证件：</label>
					<div class="input-group col-sm-4">
						<input type="hidden" id="credentials" name="credentials"  value="{$ad.credentials}"/>
						<input id="upload" name="upload" type="file" />
					</div>
				</div>
				<!--证件设置end-->
	
				<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	//顶部导航
	$("#li-bar-card").addClass("active");
	upload_one('{$ad.license}');
	$(function() {
		$("#myForm").validate({
			rules: {
			},
			messages: {
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
{/block}